package org.yogurtcat.server.modules.system.permission.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.Repository;
import org.yogurtcat.server.modules.system.permission.domain.Permission;

public interface PermissionRepository extends Repository<Permission, Long>, JpaSpecificationExecutor<Permission> {

	void save(Permission value);

	List<Permission> findAllByPid(long pid);

	Permission findByPid(long l);

	void deleteById(Long id);
}
